package com.slwu.builder;

/**
 * 角色创建控制器，指挥者
 */
public class ActorController {

    /**
     * 控制构建步骤
     * @param builder 构造者
     * @return 角色
     */
    public Actor contractActor(ActorBuilder builder) {
        Actor actor;
        builder.buildType();
        builder.buildSex();
        builder.buildFace();
        builder.buildCostume();
        builder.buildHairstyle();
        actor = builder.creatActor();
        return actor;
    }
}
